//
//  HomeViewModel.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/2/3.
//

import Foundation
import SwiftUI
class EmojiManagerViewModel : BaseViewModel {
    @Published var tableItem : [HomeTableItem] = []
    
    func getTab() {
        request(isLoading: false) {
            var listItems:[HomeTableItem] = []
            let bean = HomeTableItem(uuid: UUID().uuidString, id: "0", name: "表情包")
//            let bean2 = HomeTableItem(uuid: UUID().uuidString, id: "1", name: "通用")
//            let bean3 = HomeTableItem(uuid: UUID().uuidString, id: "2", name: "动图")
//            let bean4 = HomeTableItem(uuid: UUID().uuidString, id: "3", name: "小红薯")
            listItems.append(bean)
//            listItems.append(bean2)
//            listItems.append(bean3)
//            listItems.append(bean4)
            return listItems
        } suc: { list in
            self.tableItem = list
        } fail: {
            showLog($0.message)
        }
    }
}
